{% extends "base.html" %}
{%block content%}
    <form action="{%block action%}/new_servicer{%endblock%}" method="post">
        <div class="required">
        <label for="loginstr">
          串
        </label>
        <input name="loginstr" size="60" value="{% block loginstr %}{% endblock %}" id="loginstr" type="text">
        </div>

      <div class="required">
        <label for="place">
          所属机房
        </label>
        <select name="place" id="place">
          {%block palce%}
          {% for palce in baseinfos.places %}
          <option value="{{palce[0]}}">
            {{palce[1]}}
          </option>
          {%endfor%}
          {%endblock%}
        </select>
      </div>

      <div class="required">
        <label for="system">
          操作系统
        </label>
        <select name="system" id="system">
          {%block system%}
          {% for system in baseinfos.systems %}
          <option value="{{system[0]}}">
            {{system[1]}}
          </option>
          {%endfor%}
          {%endblock%}
        </select>
      </div>

      <div class="required">
        <label for="type">
          服务器类型
        </label>
        <select name="type" class="selectMultiple" id="type">
          {%block type%}
          {% for type in baseinfos.types %}
          <option value="{{type[0]}}">
            {{type[1]}}
          </option>
          {%endfor%}
          {%endblock%}
        </select>
      </div>

      <div class="required">
        <label for="sa">
          管理员
        </label>
        <select name="sa" id="sa">
          {%block sa%}
          {% for sa in baseinfos.sas %}
          <option value="{{sa[0]}}">
            {{sa[1]}}
          </option>
          {%endfor%}
          {%endblock%}
        </select>
      </div>

      <div class="required">
        <label for="project">
          项目
        </label>
        <select name="project" id="project">
          {%block project%}
          {% for project in baseinfos.projects %}
          <option value="{{project[0]}}">
            {{project[1]}}
          </option>
          {%endfor%}
          {%endblock%}
        </select>
      </div>

      <div class="required">
        <label for="comment">
          说明备注
        </label>
        <textarea name="comment" cols="60" rows="10" id="comment">{% block comment %}{% endblock %}</textarea>
      </div>

      <div class="required">
        <label for="ip">
          ip(一行一个)
        </label>
        <textarea name="ip" cols="60" rows="10" id="ip">{% block ip %}{% endblock %}</textarea>
      </div>

      <div class="button">
        <button type="submit">
          保存
        </button>
      </div>
    </form>
{%endblock%}